package lru;

/**
 * 定义基本的链表操作节点
 *
 * @Author Chill_Lyn
 * @Date 2021/3/22 22:30
 */
public class Node<K, V> {
    K key;
    V value;
    Node<K, V> pre;
    Node<K, V> next;

    public Node(K key, V value) {
        this.key = key;
        this.value = value;
    }

    @Override
    public String toString() {
        return key.toString() + ":" + value.toString();
    }
}
